#include <stdio.h>
int convertInteger(int A, int B) {
    int C = A ^ B;
    int i = 0;
    int count = 0;
    for (i = 0; i < 32; i++)
    {
        if ((C & 1) == 1)
        {
            count++;
        }
        C >>= 1;
    }
    return count;
}
int main()
{
    int A = 29, B = 15;
    int ret = convertInteger(A, B);
    printf("%d\n", ret);
    return 0;
}